<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"         
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <h:body>

        <ui:composition template="./../templates/templateNECS.xhtml">

            <ui:define name="top">
                Lista de vendas
            </ui:define>

            <ui:define name="left">            
                <h:outputLink value="funcBalc_venda_listar.xhtml">Lista de vendas</h:outputLink>
                <br></br>
                <h:outputLink value="funcBalc_venda_criar.xhtml">Criar Vendas</h:outputLink>
            </ui:define>

            <ui:define name="content">
               <h:form> 
                   <h:dataTable var="venda"
                                 summary="Vendas"
                                 value="#{funcionarioBalcaoManager.vendas}"
                                 rules="all"
                                 cellpadding="5">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Venda ID" />
                            </f:facet>
                            <h:outputText value="#{venda.id}" />
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Data Venda" />
                            </f:facet>
                            <h:outputText value="#{venda.dataVenda}" />
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Preço" />
                            </f:facet>
                            <h:outputText value="#{funcionarioBalcaoManager.precoVenda}" />
                        </h:column>
                    </h:dataTable>
                    <br />                  
                </h:form>
            </ui:define>

        </ui:composition>

    </h:body>
</html>
